// ignore_for_file: prefer_const_literals_to_create_immutables, prefer_const_constructors, prefer_const_constructors_in_immutables

import 'package:flutter/material.dart';
import 'package:get/get.dart';

import 'controller.dart';

class StateLazyPut2 extends GetView<LazyputController> {
  StateLazyPut2({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("sdfa"),
      ),
      body: Center(
        child: Column(
          children: <Widget>[
            SizedBox(height: 10,),
            Obx(() =>Text('value -> ${controller.count}')),
            SizedBox(height: 10,),
            Divider(),
            ElevatedButton(onPressed: () => controller.add(), child: Text("add",style: TextStyle(fontSize: 18),))
          ],
        ),
      ),
    );
  }
}